/**
 * 
 */
package org.example.controller;

import java.util.List;

import javax.servlet.ServletContext;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.example.pojo.Wechat;
import org.example.service.ServiceTest;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @author alex
 *
 */
@Controller
@RequestMapping("/")
public class ControllerTest extends WechatBaseController{
	@Autowired ServiceTest serviceTest;
	@RequestMapping("index.do")
	public String list(HttpServletRequest req,HttpServletResponse res){
		System.out.println("fangwen");
		List<Wechat> wechat  = serviceTest.selectWechatById("101");
		return "ceshi";
	}
	@RequestMapping("in.do")
	public String info(HttpServletRequest req,HttpServletResponse res){
		System.out.println("fangwen--info");
		return "ceshi";
	}
	
}
